﻿namespace ZHDJ.Data
{
    public class DBInstance
    {
        #region 实体上下文

        private AppBoxContext _DB;
        /// <summary>
        /// 数据访问 
        /// </summary>
        public AppBoxContext DB
        {
            get
            {
                if (_DB == null)
                {
                    _DB = new AppBoxContext();
                }
                return _DB;
            }
        }

        #endregion
    }
}
